package com.ttedu.database.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ttedu.database.dao.banksMapper;
import com.ttedu.database.model.banks;
import com.ttedu.database.model.banksExample;
import com.ttedu.database.service.BanksService;
@Service
public class BanksServiceImpl implements BanksService{
	@Autowired
	private banksMapper banksmapper;
	public List<banks> selectAll(){
		banksExample example=new banksExample();
		return banksmapper.selectByExample(example);
	}
	public banks selectByPrimaryKey(int id){
		return banksmapper.selectByPrimaryKey(id);
	}
	
	public int insert(banks bank){
		return banksmapper.insert(bank);
	}
	public void deleteByPrimaryKey(int id){
		banksmapper.deleteByPrimaryKey(id);
	}
	public void updateByPrimaryKey(banks bank){
		banksmapper.updateByPrimaryKey(bank);
	}
}
